package com.kamistoat.meimeichat.meimeichatserverapplication.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.PageUtils;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.Query;

import com.kamistoat.meimeichat.meimeichatserverapplication.dao.MmcUserDao;
import com.kamistoat.meimeichat.meimeichatserverapplication.entity.MmcUserEntity;
import com.kamistoat.meimeichat.meimeichatserverapplication.service.MmcUserService;


@Service("mmcUserService")
public class MmcUserServiceImpl extends ServiceImpl<MmcUserDao, MmcUserEntity> implements MmcUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MmcUserEntity> page = this.page(
                new Query<MmcUserEntity>().getPage(params),
                new QueryWrapper<MmcUserEntity>()
        );

        return new PageUtils(page);
    }

}